<?php
// config/ide-helper.php

// 这个文件仅用于IDE支持，不会被实际执行

use Core\Container;
use Core\Request;
use Core\Response;
use Core\Router;
use Core\ExceptionHandler;
use App\Middlewares\CorsMiddleware;
use App\Middlewares\AuthMiddleware;

/**
 * @var Container $container
 */

// 绑定示例，帮助IDE理解类型
$container->bind(Request::class, function() {
    return new Request();
});

$container->bind(Router::class, function($container) {
    return new Router($container);
});

$container->bind(Response::class, function() {
    return Response::make();
});

$container->bind(ExceptionHandler::class, function($container) {
    return new ExceptionHandler($container);
});

$container->bind(CorsMiddleware::class, function() {
    return new CorsMiddleware();
});

$container->bind(AuthMiddleware::class, function() {
    return new AuthMiddleware();
});